<!DOCTYPE html>
<html lang="ch">
<head>
    <meta charset="UTF-8"/>
    <title>商品详情</title>
</head>
<body>
<form action="/comm/updateComm.do" method="post">
    <input type="hidden" value="${result.id}" name="id"/>
    <table cellspacing="0" cellpadding="5" border="0">
        <tr>
            <td>商品名称</td>
            <td>${result.commName}</td>
        </tr>

        <tr>
            <td>品牌</td>
            <td>${result.commBrandBean.brandName}</td>
        </tr>

        <tr>
            <td>商品类型</td>
            <td>${result.commTypeBean.typeName}</td>
        </tr>

        <tr>
            <td>商品编码</td>
            <td>${result.commCode}</td>
        </tr>

        <tr>
            <td>商品状态</td>
            <td>
                <#if result.state == 1>
                    上架
                <#elseif result.state == 2>
                    促销
                <#else>
                    下架
                </#if>
            </td>
        </tr>

        <tr>
            <td>商品条形码</td>
            <td>${result.commBarCode}</td>
        </tr>

        <tr>
            <td>进货价</td>
            <td>${result.jhPrice}</td>
        </tr>

        <tr>
            <td>销售渠道</td>
            <td>
                <table cellpadding="2" cellspacing="0" border="1">
                    <tr>
                        <th>渠道</th>
                        <th>售价</th>
                    </tr>
                    <#list result.channelList as data>
                        <tr></tr>
                        <td>${data.channelName}</td>
                        <td>${(data.price * result.cbPrice) + result.cbPrice}</td>
                    </#list>
                </table>
            </td>
        </tr>

        <tr>
            <td>商品信息</td>
            <td>
                <table cellspacing="0" cellpadding="3" border="0">
                    <tr>
                        <td>容量：</td>
                        <td>${result.capacity!'N/A'}</td>
                        <td>重量：</td>
                        <td>${result.weight!'N/A'}</td>
                    </tr>
                    <tr>
                        <td>产地：</td>
                        <td>${result.origin!'N/A'}</td>
                        <td>包装单位：</td>
                        <td>${result.packingUnit!'N/A'}</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">
                &nbsp;&nbsp;&nbsp;
                <input type="button" value="返回" onclick="window.history.back()"/>
                &nbsp;&nbsp;&nbsp;
            </td>
        </tr>
    </table>

</form>
</body>
</html>